#pragma once
#include <cocos2d.h>
#include "Weapon.h"

USING_NS_CC;

class WeaponBank : public CCObject
{
public:
	WeaponBank(void);
	~WeaponBank(void);

	void initBank();
	void clearBank();

	Weapon* getWeapon(char* type);
	CC_SYNTHESIZE_RETAIN(CCDictionary*, _listWeaponFactory, WeaponFactories);
	
	static WeaponBank* _instance;
	static WeaponBank* sharedWeaponBank();

};

